<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">
			<div class="grid-body no-border email-body">
				<?php
				/* @var $this Model2servController */
				/* @var $model Model2serv */


				$this->breadcrumbs = array(
					'Model2servs' => array('index'),
					'Управление',
				);
				?>

				<?php
				$this->widget('bootstrap.widgets.TbGridView', array(
					'id' => 'model2serv-grid',
					'dataProvider' => $model->search(),
					'filter' => $model,
					'columns' => array(
						'linkId',
						'catTitle',
						'brandTitle',
						'modelTitle',
						'serviceTitle',
						array(
							'name' => 'blockNo',
							'filter' => '',
						),
						array(
							'name' => 'price',
							'filter' => '',
						),
						array(
							'name' => 'regionId',
							'filter' => '',
						),
						array(
							'name' => 'available',
							'filter' => '',
						),
						array(
							'name' => 'sort',
							'filter' => '',
						),
						array(
							'name' => 'active',
							'filter' => '',
						),
						array(
							'class' => 'bootstrap.widgets.TbButtonColumn',
							'buttons' => array(
								'update' => array(
									'url' => 'Yii::app()->controller->createUrl("update",array("id"=>$data->modelId))',
								),
								'view' => array(
									'url' => 'Yii::app()->controller->createUrl("priceHistory",array("id"=>$data->linkId))',
								),
								'delete' => array(
									'url' => 'Yii::app()->controller->createUrl("delete",array("id"=>$data->linkId))',
								),
							)
						),
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>
<script>
	$(document).ready($('#model2serv-grid_c10').text('Действия'));
</script>
<style>
	input {
		max-width: 60px;
    }
</style>